package com.example.demo_spring.ioc_di.spring.depInterface;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyCustomer3Config {
    @Bean
    public MyCustomer3 createMyCustomer3WithName()
    {
        MyCustomer3 myc3 = new MyCustomer3("My Wangwu");
        return myc3;
    }

//    @Bean
    public MyCustomer3 createMyCustomer3()
    {
        MyCustomer3 myc3 = new MyCustomer3();
        return myc3;
    }
}

